<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            background-image: linear-gradient(rgb(90, 90, 250), rgb(3, 3, 100));
        }

        .container,
        .mave {
            width: 200px;
            height: 200px;
            border-radius: 50%;
        }

        .container {
            border: 3px solid darkturquoise;
            padding: 10px;
        }

        .mave {
            overflow: hidden;
            position: relative;
            background-color: skyblue;
        }

        .mave::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 300px;
            height: 300px;
            border-radius: 40%;
            background-color: rgba(255, 255, 255, 0.8);
            transform: translate(calc(100px - 50%), -60%);
            animation: mave 5s infinite linear;
        }

        .mave::after {
            font-size: 1.2rem;
            font-family: Sans-serif;
            content: 'oceanball';
            position: absolute;
            color: darkturquoise;
            text-transform: uppercase;
            font-weight: 700;
            left: 50%;
            transform: translate(-50%, 30px);
            /* transform 中的百分比是元素自身的长度 */
        }

        @keyframes mave {
            100% {
                transform: translate(calc(100px - 50%), -60%) rotate(360deg);
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="mave"></div>
    </div>
</body>

</html>